<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>        
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Textarea</title>
<script type="text/javascript" src="scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript">
    window.onload = function()
    {
        CKEDITOR.replace('FContent');//FContent：这个对应文本域
    };   
 
 //插入图片 并插入编辑器
  	function InsertHTML(s) {
  		var editor = CKEDITOR.instances.FContent; //FContent：这个对应文本域
  		if (editor.mode == 'wysiwyg') {
  			editor.insertHtml(s);
  		}
  		CKEDITOR.dialog.getCurrent().hide();//隐藏弹出层
  	}

</script>
</head>

<body>
<textarea name="FContent" id="FContent" cols="8" rows="6"></textarea>
</body>
</html>